﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy
{
    enum Dishes
    { 
    川菜,
    鲁菜,
    粤菜,
    苏菜,
    浙菜,
    闽菜,
    湘菜,
    徽菜
    }
    class CookRobot:Robot
    {
        private Dishes food;
        public Dishes Food 
        { get => food;
          set => this.food = value;
        }
        public CookRobot(string name,Dishes food) : base(name) {
            this.food = food;
        }

        public override void Working()
        {
            Console.WriteLine("我是{0},我可以做{1}",base.Name,this.Food);
        }
    }
}
